<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8" />
	<meta content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
	<meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
	<meta content="telephone=no" name="format-detection">
	<link rel="stylesheet" href="__PUBLIC__/wechat/css/global.css" />
	<link rel="stylesheet" href="__PUBLIC__/wechat/css/datePicker.css" />
	<link rel="stylesheet" href="__PUBLIC__/wechat/css/main.css" />
	<title>购险</title>
</head>
<body>
	<div class="buy">
		<form action="select_insurance.html" method="post" id="forms">
			<ul class="form_ul">
				
				
				<li class="box">
					<div class="box_left">
						所在地：
					</div>
					<div class="box_flex1">
						<div class="box all_add">
							<select name="province_" id="province_" class="box_flex1"></select>
		                    <select name="city_" id="city_" class="box_flex1"></select>
						</div>
						<div style="margin-top: -68px;">仅限浙江地区，宁波除外</div>
					</div>
				</li>
				<!-- <li class="box">
					<div class="box_left">
						中华保险：
					</div>
					<div class="box_flex1">
						<div class="select_label box">
							<label for="insurance1" class="box_flex1 on" id="continue">续保</label>
							<input type="checkbox" class="hide" name="_type2" id="insurance1" />

							<label for="insurance2" class="box_flex1" id="no_continue">不续保</label>
							<input type="checkbox" class="hide" name="_type2" id="insurance2" />
						</div>
					</div>
				</li> -->
				<li class="box">
					<div class="box_left">
						车牌：
					</div>
					<div class="box_flex1">
						<div class="box">
						
							<input type="text" class="box_flex1" />
						
						</div>
					</div>
				</li>
				
				<li class="box">
					<div class="box_left">
						车架号：
					</div>
					<div class="box_flex1">
						<input type="text" name=""/>
					</div>
				</li>
				<li class="box">
					<div class="box_left">
						发动机号：
					</div>
					<div class="box_flex1">
						<input type="text" name="" />
					</div>
				</li>
				<li class="box">
					<div class="box_left">
						初登日期：
					</div>
					<div class="box_flex1">
						<input type="text" class="datePicker" name="" />
					</div>
				</li>
			</ul>
			<span></span>
			<input type="submit" value="提交" class="big_btn" />
		</form>
		
	</div>
	
</body>
</html>
<script type="text/javascript" src="__PUBLIC__/wechat/js/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/wechat/js/public.js"></script>
<script type="text/javascript" src="__PUBLIC__/wechat/js/PCASClass.js"></script>
<script type="text/javascript" src="__PUBLIC__/wechat/js/datePicker.js"></script>
<script type="text/javascript" src="__PUBLIC__/wechat/js/jquery.validate.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/wechat/js/jquery-validate-methods.js"></script>
<script type="text/javascript">
	$(".datePicker").each(function(){
		$(this).datepicker({
            format: "yyyy/mm/dd",
            todayBtn: "linked",
            language: "zh-CN",
            autoclose: true,
            todayHighlight: true
        });
        var date = new Date();
        var year = date.getFullYear();
        var _month = date.getMonth()+1;
        var month = (_month<10)?"0"+_month:_month;
        var day = (date.getDate()<10)?"0"+date.getDate():date.getDate();
        var date = year+"/"+month+"/"+day;            
        $(this).val(date);
	}); 
</script>
<script type="text/javascript">
	new PCAS("province_","city_");
</script>
<script type="text/javascript">
    $(document).ready(function(){
        $('#forms').validate({//表单验证
            rules: {
                _name: {
                	required: true
                },
                _phone: {
                	required: true
                },
                _address: {
                	required: true
                }
            },
            messages: {
                _name: {
                	required:'请填写姓名'
                },
                _phone: {
                	required:'请填写联系电话'
                },
                _address: {
                	required:'请填写联系地址'
                }
            },  
            showErrors: function(errorMap, errorList) { 
                $.each( errorList, function(i,v){
                    if(v.message!=""){
                        openWarningBox(v.message);
                        return false;
                    }
                });  
            },
            /* 失去焦点时不验证 */
            onfocusout: false
        });
    });
</script>